let mongodb = require("../server/config");

/*
* 新闻数据模型
* */

let Schema = mongodb.mongoose.Schema;

let newsSchema = new Schema({
  title: {type: String},  // 标题
  content: {type: String},  // 正文
  time: {type: String},  // 时间
});

let newsModel = mongodb.mongoose.model("news", newsSchema);

exports.newsList = newsModel;
